{% extends 'base.html' %}
{% block title %}教师登录{% endblock %}
{% block main %}
    <h1>教师登录</h1>
    <div style="max-width: 330px" class="m-auto">
        <form method="post" action="">
            {% csrf_token %}
            <div class="mb-3">
                <label>手机号</label>
                <input type="number" name="phone" class="form-control" placeholder="手机号">
            </div>
            <div class="mb-3">
                <label>密码</label>
                <input type="password" name="password" class="form-control" placeholder="密码">
            </div>
            {% if error %}
                <p class="text-danger">{{ error }}</p>
            {% endif %}
            <div class="mb-3 mt-3">
                <button class="btn btn-primary w-100">立即登录</button>
            </div>

        </form>
    </div>


{% endblock %}